package com.shop.zkmall.app.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 广告推广记录表
 * </p>
 *
 * @author ${author}
 * @since 2025-11-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("cere_buyer_ad_promotion")
@ApiModel(value="CereBuyerAdPromotion对象", description="广告推广记录表")
public class CereBuyerAdPromotion implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "推广记录ID")
    private Long id;

    @ApiModelProperty(value = "用户ID")
    private String userId;

    @ApiModelProperty(value = "推广类型 1轮播图 2首页推荐 3通用推流")
    private Integer promotionType;

    @ApiModelProperty(value = "时长，单位分钟，如15/30/60/9999（全场）")
    private Integer duration;

    @ApiModelProperty(value = "推广价格")
    private BigDecimal price;

    @ApiModelProperty(value = "广告图片，仅轮播图需要")
    private String imageUrl;

    @ApiModelProperty(value = "支付订单ID")
    private Long payOrderId;

    @ApiModelProperty(value = "状态 0待支付 1已支付 2已取消")
    private Integer status;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;


}
